|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.tax.hci.TaxInfoModel
public class TaxInfoModel
This Java class specifies the tax settings of a subscriber account
in customer master data.
The SAP CC system uses this information when calculating the tax data (amounts, ...):
specific tax settings (different for each invoicing tax system)NO_TAX
EZTAX_AREA (for EZTax)
BY_RULE (for VAT system with rules)
/<COUNTRY_CODE>/ (for VAT system without rule: An ISO 3166 country code) Examples: /FR/, /DE/, /ES/, ...)
Consult the SAP CC Library (Application Help) documentation about tax management feature and configuration.
TaxDataModel,
SubscriberAccountModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="taxInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="taxData" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="taxationModule" type="AccountTaxationModuleType" default="vatTaxationModule"/> <!-- invoicing tax system -->
<xs:attribute name="taxCode" type="xs:string" default="NO_TAX"/> <!-- See country code embedded with slashes -->
<xs:attribute name="taxationMode" type="AccountTaxationModeType" default="vendorSubjectToPay"/>
</xs:complexType>
</xs:element><xs:simpleType name="AccountTaxationModuleType"> <xs:restriction base="xs:string"> <xs:enumeration value="nopTaxationModule"/> <xs:enumeration value="vatTaxationModule"/> <!-- EU VAT system or flat tax system --> <xs:enumeration value="eztaxTaxationModule"/> <!-- US EZTax system --> </xs:restriction> </xs:simpleType>
<xs:simpleType name="AccountTaxationModeType"> <xs:restriction base="xs:string"> <xs:enumeration value="vendorSubjectToPay"/> <xs:enumeration value="buyerSubjectToPay"/> <xs:enumeration value="buyerExempted"/> <xs:enumeration value="noTax"/> </xs:restriction> </xs:simpleType>
| Constructor Summary | |
|---|---|
TaxInfoModel()
|
|
TaxInfoModel(com.highdeal.tax.Tax.TaxationModule taxationModule,
java.lang.String taxCode,
com.highdeal.tax.Tax.TaxationMode taxationMode,
TaxDataModel taxData)
Builds a tax information |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
com.highdeal.tax.Tax.TaxationMode |
getTaxationMode()
Gets the taxation mode for the account see TaxationMode |
com.highdeal.tax.Tax.TaxationModule |
getTaxationModule()
Gets the tax system for the account see TaxationModule |
java.lang.String |
getTaxCode()
Gets the tax code for the account |
TaxDataModel |
getTaxData()
Returns all set tax data, as a Properties with
names as key and values as values. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setTaxationMode(com.highdeal.tax.Tax.TaxationMode taxationMode)
Sets the taxation mode for the account |
void |
setTaxationModule(com.highdeal.tax.Tax.TaxationModule taxationModule)
Sets the tax system for the account |
void |
setTaxCode(java.lang.String taxCode)
Sets the tax code for the account |
void |
setTaxData(TaxDataModel taxData)
Sets the taxation data |
java.lang.String |
toString()
Returns a string representation of the tax information |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaxInfoModel()
public TaxInfoModel(com.highdeal.tax.Tax.TaxationModule taxationModule,
java.lang.String taxCode,
com.highdeal.tax.Tax.TaxationMode taxationMode,
TaxDataModel taxData)
taxationModule - The tax system, see AccountTaxationModuleType to know available modules to tax this accounttaxCode - The code of the tax which is associated to the accounttaxationMode - The taxation mode, see the AccountTaxationModeType to know available modes to tax this accounttaxData - The specific EZTax data for this account| Method Detail |
|---|
public void setTaxData(TaxDataModel taxData)
taxData - The taxation datapublic TaxDataModel getTaxData()
Properties with
names as key and values as values.
Propertiespublic com.highdeal.tax.Tax.TaxationModule getTaxationModule()
TaxationModule
public void setTaxationModule(com.highdeal.tax.Tax.TaxationModule taxationModule)
taxationModule - The taxation module for this account
see TaxationModule to know available modules to tax this accountpublic java.lang.String getTaxCode()
public void setTaxCode(java.lang.String taxCode)
taxCode - The tax code for this accountpublic com.highdeal.tax.Tax.TaxationMode getTaxationMode()
TaxationMode
public void setTaxationMode(com.highdeal.tax.Tax.TaxationMode taxationMode)
taxationMode - The taxation mode for this account
see TaxationMode to know available modes to tax this accountpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||